﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MenuTree.aspx.cs" Inherits="Main_MenuTree" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/style.css" type="text/css" rel="STYLESHEET" />
    <link href="../css/menu.css" type="text/css" rel="STYLESHEET" />
    <script language="JavaScript" type="text/javascript">
        var cur_id = "";
        var flag = 0, sflag = 0;

        //-------- 菜单点击事件 -------
        function c(srcelement) {
            var targetid, srcelement, targetelement;
            var strbuf;

            //-------- 如果点击了展开或收缩按钮---------
            targetid = srcelement.id + "d";
            targetelement = document.getElementById(targetid);

            if (targetelement.style.display == "none") {
                srcelement.className = "active";
                targetelement.style.display = '';

                menu_flag = 0;
            }
            else {
                srcelement.className = "";
                targetelement.style.display = "none";

                menu_flag = 1;
                var links = document.getElementsByTagName("A");
                for (i = 0; i < links.length; i++) {
                    srcelement = links[i];
                    if (srcelement.parentNode.className.toUpperCase() == "L1" && srcelement.className == "active" && srcelement.id.substr(0, 1) == "m") {
                        menu_flag = 0;
                        break;
                    }
                }
            }
        }
        function set_current(id) {
            cur_link = document.getElementById("f" + cur_id)
            if (cur_link)
                cur_link.className = "";
            cur_link = document.getElementById("f" + id);
            if (cur_link)
                cur_link.className = "active";
            cur_id = id;
        }
        //-------- 打开网址 -------
        function a(URL, id) {
            set_current(id);
            //if(URL.substr(0,7)!="http://" && URL.substr(0,6)!="ftp://")
            //   URL = "/general/"+URL;
            //window.open(URL,"main");
            parent.openURL(URL, 0);
        }
        function b(URL, id) {
            set_current(id);
            URL = "/app/" + URL;
            parent.openURL(URL, 0);
        }
        //-------- 菜单全部展开/收缩 -------
        var menu_flag = 1;
        function menu_expand() {

            menu_flag = 1 - menu_flag;

            var links = document.getElementsByTagName("A");
            for (i = 0; i < links.length; i++) {
                srcelement = links[i];
                if (srcelement.parentNode.className.toUpperCase() == "L1" || srcelement.parentNode.className.toUpperCase() == "L21") {
                    targetelement = document.getElementById(srcelement.id + "d");
                    if (menu_flag == 0) {
                        targetelement.style.display = '';
                        srcelement.className = "active";
                    }
                    else {
                        targetelement.style.display = "none";
                        srcelement.className = "";
                    }
                }
            }
        }

        //-------- 打开windows程序 -------
        function winexe(NAME, PROG) {
            URL = "/general/winexe?PROG=" + PROG + "&NAME=" + NAME;
            window.open(URL, "winexe", "height=100,width=350,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top=0,left=0,resizable=no");
        }


    </script>
</head>
<body class="panel" topmargin="0" leftmargin="0">
    <form id="form1" runat="server">
    <div id="body" runat="server">
    </div>
    <div style="overflow: auto; height: 100%; scrollbar-face-color: #ffffff; scrollbar-highlight-color: #6fa4d0;
        scrollbar-shadow-color: #6fa4d0; scrollbar-3dlight-color: #e6e6e6; scrollbar-arrow-color: #6fa4d0;
        scrollbar-track-color: #ffffff; scrollbar-darkshadow-color: #e6e6e6; display: none;">
        <asp:TreeView ID="ListTreeView" runat="server" ExpandDepth="0" ShowLines="True" ForeColor="Black">
            <ParentNodeStyle HorizontalPadding="2px" />
            <RootNodeStyle HorizontalPadding="2px" />
            <LeafNodeStyle HorizontalPadding="2px" />
            <Nodes>
                <asp:TreeNode ImageUrl="../images/TreeImages/hrms.gif" Text="人力资源管理" Value="人力资源管理"
                    SelectAction="Expand">
                    <asp:TreeNode ImageUrl="../images/TreeImages/hrms.gif" Text="人事档案" Value="A003" NavigateUrl="../SystemManage/SystemUser.aspx?Type=serch"
                        Target="rform"></asp:TreeNode>
   
                </asp:TreeNode>
                <asp:TreeNode ImageUrl="../images/TreeImages/hrms.gif" Text="客户管理CRM" Value="客户管理CRM"
                    SelectAction="Expand">
                    <asp:TreeNode ImageUrl="../images/TreeImages/hrms.gif" Text="我的客户" Value="我的客户" SelectAction="Expand">
                        <asp:TreeNode ImageUrl="../images/TreeImages/hrms.gif" Text="客户信息" Value="C001" NavigateUrl="../CRM/MyCustom.aspx"
                            Target="rform"></asp:TreeNode>
                        <asp:TreeNode ImageUrl="../images/TreeImages/hrms.gif" Text="客户联系人" Value="C002"
                            NavigateUrl="../CRM/MyCustomLinkMan.aspx?CustomName=" Target="rform"></asp:TreeNode>
                        <asp:TreeNode ImageUrl="../images/TreeImages/hrms.gif" Text="联系记录" Value="C003" NavigateUrl="../CRM/MyCustomLinkLog.aspx?CustomName="
                            Target="rform"></asp:TreeNode>
                        <asp:TreeNode ImageUrl="../images/TreeImages/hrms.gif" Text="需求记录" Value="C004" NavigateUrl="../CRM/MyCustomNeed.aspx?CustomName="
                            Target="rform"></asp:TreeNode>
                        <asp:TreeNode ImageUrl="../images/TreeImages/hrms.gif" Text="报价记录" Value="C005" NavigateUrl="../CRM/MyCustomPrice.aspx?CustomName="
                            Target="rform"></asp:TreeNode>
                        <asp:TreeNode ImageUrl="../images/TreeImages/hrms.gif" Text="服务记录" Value="C006" NavigateUrl="../CRM/MyCustomService.aspx?CustomName="
                            Target="rform"></asp:TreeNode>
                        <asp:TreeNode ImageUrl="../images/TreeImages/training.gif" Text="回访记录" Value="C007"
                            NavigateUrl="../CRM/MyCustomBack.aspx?CustomName=" Target="rform"></asp:TreeNode>
                        <asp:TreeNode ImageUrl="../images/TreeImages/training.gif" Text="投诉记录" Value="C008"
                            NavigateUrl="../CRM/MyCustomHate.aspx?CustomName=" Target="rform"></asp:TreeNode>
                        <asp:TreeNode ImageUrl="../images/TreeImages/training.gif" Text="送样记录" Value="C018"
                            NavigateUrl="../CRM/MySongYang.aspx?CustomName=" Target="rform"></asp:TreeNode>
                    </asp:TreeNode>
                    <asp:TreeNode ImageUrl="../images/TreeImages/hrms.gif" Text="客户管理" Value="客户管理" SelectAction="Expand">
                        <asp:TreeNode ImageUrl="../images/TreeImages/hrms.gif" Text="客户信息管理" Value="C009"
                            NavigateUrl="../CRM/CustomInfo.aspx" Target="rform"></asp:TreeNode>
                        <asp:TreeNode ImageUrl="../images/TreeImages/hrms.gif" Text="联系人管理" Value="C010"
                            NavigateUrl="../CRM/CustomLinkMan.aspx" Target="rform"></asp:TreeNode>
                        <asp:TreeNode ImageUrl="../images/TreeImages/hrms.gif" Text="联系记录管理" Value="C011"
                            NavigateUrl="../CRM/CustomLinkLog.aspx" Target="rform"></asp:TreeNode>
                        <asp:TreeNode ImageUrl="../images/TreeImages/hrms.gif" Text="需求记录管理" Value="C012"
                            NavigateUrl="../CRM/CustomNeed.aspx" Target="rform"></asp:TreeNode>
                        <asp:TreeNode ImageUrl="../images/TreeImages/hrms.gif" Text="报价记录管理" Value="C013"
                            NavigateUrl="../CRM/CustomPrice.aspx" Target="rform"></asp:TreeNode>
                        <asp:TreeNode ImageUrl="../images/TreeImages/hrms.gif" Text="服务记录管理" Value="C014"
                            NavigateUrl="../CRM/CustomService.aspx" Target="rform"></asp:TreeNode>
                        <asp:TreeNode ImageUrl="../images/TreeImages/training.gif" Text="回访记录管理" Value="C015"
                            NavigateUrl="../CRM/CustomBack.aspx" Target="rform"></asp:TreeNode>
                        <asp:TreeNode ImageUrl="../images/TreeImages/training.gif" Text="投诉记录管理" Value="C016"
                            NavigateUrl="../CRM/CustomHate.aspx" Target="rform"></asp:TreeNode>
                        <asp:TreeNode ImageUrl="../images/TreeImages/training.gif" Text="送样记录管理" Value="C019"
                            NavigateUrl="../CRM/SongYang.aspx" Target="rform"></asp:TreeNode>
                        <asp:TreeNode ImageUrl="../images/TreeImages/training.gif" Text="邮件信息群发" Value="C017"
                            NavigateUrl="../CRM/CustomMsg.aspx" Target="rform"></asp:TreeNode>
                        <asp:TreeNode ImageUrl="../images/TreeImages/training.gif" Text="客户信息统计" Value="C020"
                            NavigateUrl="../CRM/CustomSum.aspx" Target="rform"></asp:TreeNode>
                        <asp:TreeNode ImageUrl="../images/TreeImages/training.gif" Text="客户参数设置" Value="C021"
                            NavigateUrl="../CRM/CustomSetting.aspx" Target="rform"></asp:TreeNode>
                    </asp:TreeNode>
                </asp:TreeNode>
     
                <asp:TreeNode ImageUrl="../images/TreeImages/sale_manage.gif" Text="供应商管理" Value="供应商管理"
                    SelectAction="Expand">
                    <asp:TreeNode ImageUrl="../images/TreeImages/sale_manage.gif" Text="供应商管理" Value="A013"
                        NavigateUrl="../Supply/Supplys.aspx" Target="rform"></asp:TreeNode>
                    <asp:TreeNode ImageUrl="../images/TreeImages/sale_manage.gif" Text="供应商联系人" Value="A014"
                        NavigateUrl="../Supply/SupplysLink.aspx?GongYingShang=" Target="rform"></asp:TreeNode>
                    
                </asp:TreeNode>
                
     
                <asp:TreeNode ImageUrl="../images/TreeImages/@score.gif" Text="系统管理" Value="系统管理"
                    SelectAction="Expand">
                    <asp:TreeNode ImageUrl="../images/TreeImages/@netmeeting.gif" Text="部门信息管理" Value="069"
                        NavigateUrl="../SystemManage/BuMenInfo.aspx?Type=&amp;DirID=0" Target="rform">
                    </asp:TreeNode>
                    <asp:TreeNode ImageUrl="../images/TreeImages/@netmeeting.gif" Text="用户信息管理" Value="070"
                        NavigateUrl="../SystemManage/SystemUser.aspx" Target="rform"></asp:TreeNode>
                    <asp:TreeNode ImageUrl="../images/TreeImages/@netmeeting.gif" Text="角色信息管理" Value="071"
                        NavigateUrl="../SystemManage/SystemJiaoSe.aspx" Target="rform"></asp:TreeNode>

                </asp:TreeNode>
            </Nodes>
        </asp:TreeView>
    </div>
    </form>
</body>
</html>
